<html>
<body>
Reports code blocks that are redundant to the semantics of the program and can
be replaced with their contents.
<p>The code blocks that are the bodies of <code>if</code>, <code>do</code>,
<code>while</code>, or <code>for</code> statements will not be reported by this
  inspection.</p>
<p>Example:</p>
<pre><code>
  void foo() {
    { // unnecessary
      int result = call();
      analyze(result);
    } // unnecessary
  }
</code></pre>
<!-- tooltip end -->
<p>Configure the inspection:</p>
<p>
Use the <b>Ignore branches of 'switch' statements</b> option to ignore the code blocks that are used as branches of switch statements.
<p>

</body>
</html>